package com.yorick.login.dao;

import com.yorick.authority.entitys.AccountDto;
import com.yorick.authority.entitys.ResourceDto;
import com.yorick.authority.enums.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface LoginMapper {

    AccountDto getAccount(AccountDto data);

    AccountDto getAccountStatus(AccountDto data);

    void resetFailureTime(AccountDto data);

    void updateFailureTime(AccountDto data);

    void updateLoginDate(int aid);

    int isSuperRole(int aid);

    List<ResourceDto> findMenuByAID(int aid);
}
